//
//  HistoryTableViewCell.m
//  Double
//
//  Created by dllo on 15/5/29.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "HistoryTableViewCell.h"

@implementation HistoryTableViewCell
- (void)dealloc
{
    [_image release];
    [_label1 release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.bigView = [[UIView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width - 20, 120)];
        
        _bigView.layer.cornerRadius = 15;
        _bigView.clipsToBounds = YES;
        [self.bigView setBackgroundColor:[UIColor grayColor]];
        [self.contentView addSubview:_bigView];
        [_bigView release];
        
        UIView *myview = [[UIView alloc] initWithFrame:CGRectMake(5, 5, [UIScreen mainScreen].bounds.size.width - 30, 110)];
        myview.layer.cornerRadius = 15;
        myview.clipsToBounds = YES;
        [myview setBackgroundColor:[UIColor whiteColor]];
        [self.bigView addSubview:myview];
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 90, 90)];
        [myview addSubview:self.image];
        [_image release];
        self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(130, 20, [UIScreen mainScreen].bounds.size.width - 170, 60)];
        self.label1.font = [UIFont systemFontOfSize:20];
        [myview addSubview:self.label1];
        [_label1 release];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
